package com.leinao.service;

import com.leinao.annotation.DataSource;
import com.leinao.domain.PointInfo;
import com.leinao.domain.enums.DataSourceType;
import com.leinao.mapper.MysqlMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * description
 *
 * @author zhong.wang
 * @date 2025/1/15
 */
@Service
@DataSource(DataSourceType.MYSQL)
public class MysqlService {

    @Resource
    private MysqlMapper mysqlMapper;

    /**
     *
     * @return
     */
    public List<Long> getDeviceModelIdList(){
        return mysqlMapper.getDeviceModelIdList();
    }

    public List<PointInfo> getPointInfoList(){
        return mysqlMapper.getPointInfoList();
    }
}
